package villa.tools.mq.views;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Display;

public class Basic{
	private static Basic instancia = null;
	private Color xmlTextColor = null;
	private Color xmlTagColor = null;
	private Color xmlAttributeColor = null;
	private Color xmlCommentColor = null;
	
	private boolean wrap = false;
	private boolean indent = true;
	
	
	public Color getXmlTextColor(){
		return xmlTextColor;
	}
	public Color getXmlTagColor(){
		return xmlTagColor;
	}
	public Color getXmlAttributeColor(){
		return xmlAttributeColor;
	}
	public Color getXmlCommentColor(){
		return xmlCommentColor;
	}
	
	
	
	
	public void setWrap(boolean val)
	{
		wrap = val;
	}
	public boolean getWrap()
	{
		return wrap;
	}
	
	public void setIndent(boolean val)
	{
		indent = val;
	}
	
	public boolean getIndent()
	{
		return indent;
	}
	
	public static Basic getInstancia(){
		if (instancia==null){
				instancia = new Basic();
		}
		return instancia;
	}
	
	private Basic(){
		xmlTextColor = Display.getDefault().getSystemColor(SWT.COLOR_RED);
		xmlTagColor = Display.getDefault().getSystemColor(SWT.COLOR_BLACK);
		xmlAttributeColor = Display.getDefault().getSystemColor(SWT.COLOR_BLUE);
		xmlCommentColor = Display.getDefault().getSystemColor(SWT.COLOR_GRAY);
		wrap = false;
		indent = true;
	}
	
}

